package zhr.chapter12;

public class Example12_5 {
    public static void main(String[] args) {
        System.out.println("主线程开始运行");
        MyRunnable5 run1=new MyRunnable5();
        Thread th1=new Thread(run1);
        th1.setName("Thread1");
        Thread th2=new Thread(run1);
        th2.setName("Thread2");
        th1.start();
        th2.start();
        System.out.println("主线程运行结束");
    }
}
